home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17771 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: lou-pecora.nrl.navy.mil!user
  2. From: pecora@zoltar.nrl.navy.mil (Louis M. Pecora)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++? (definition of strong typing)
  5. Date: 17 Apr 1996 13:34:00 GMT
  6. Organization: Naval Research Laboratory
  7. Message-ID: <pecora-1704960936190001@lou-pecora.nrl.navy.mil>
  8. References: <31682FFE.2781E494@bbn.com> <dbell-1 <3171810F.2E2@funsys.se> <4l0f6o$sec@nkosi.well.com> <Dpyro4.8o9@news.hawaii.edu>
  9. NNTP-Posting-Host: lou-pecora.nrl.navy.mil
  10. X-Newsreader: Yet Another NewsWatcher 2.0
  11.  
  12. In article <Dpyro4.8o9@news.hawaii.edu>, phinely@Hawaii.Edu (Peter Hinely)
  13. wrote:
  14.  
  15. [cut]
  16. > Some languages have typing systems that don't fit in the conventional molds.
  17. > For example in Dylan:
  18. >   define variable *my-variable* = 0;
  19. > binds *my-variable* to the integer object 0.
  20. > The binding of *my-variable* can be later be changed to refer to an 
  21. > object of any class (i.e. floating point numbers, strings, collections, even 
  22. > classes and functions).
  23. > You can however specify type information for variables that you declare, 
  24. > which limits their type:
  25. >   define variable *my-variable* :: <integer> = 0;
  26. > In this case, the binding of *my-variable* can be only be changed to refer 
  27. > to another integer.
  28. > This type system allows Dylan programs to be prototyped rapidly without
  29. > type information.  Type information can later be added in, which the
  30. > compiler can use to optimize the program better, giving you the best of 
  31. > both worlds:  rapid development and good performance in your final program.
  32.  
  33. All very nice. And truly Dylan sounded great when I read a short article
  34. about it in Byte.  But isn't it dead?  What will happen to all those
  35. Apple/IBM generated languages (Dylan, Denali, others?) as Java heats up? 
  36. Only OpenDoc sounds viable (and very interesting).
  37.  
  38. -- 
  39. Louis M. Pecora
  40. pecora@zoltar.nrl.navy.mil
  41.  
  42. /* My views and opinions are not those of the U.S. Navy.
  43.    If you want those, you have to start a war.  */
  44.